package com.geekaca.d3.testwhile;

public class WhileZhufeng {
    public static void main(String[] args) {
        double paperHeight = 0.1;
        int i = 0;
        while (true) {
            i += 1;
            paperHeight *= 2;
//            System.out.println("当前纸张折叠的厚度为: " + String.format("%.2f", paperHeight / 1000) + "米");
            if (paperHeight >= 8848860) {
                System.out.println("折叠" + i + "次可以达到珠峰高度");
                break;

            }

        }
    }
}
